﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.bsh.shiro.UserContext" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sysfunc" uri="/systemFunctions" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="/res/css/style.css" rel="stylesheet" type="text/css" />
<link href="/res/js/lib/layer/skin/layer.css" rel="stylesheet" type="text/css" />
<link href="/res/js/lib/layer/skin/layer.ext.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/jquery.js"></script>
<script type="text/javascript" src="/res/js/lib/json2.js"></script>	
<script type="text/javascript" src="/res/js/lib/layer/layer.js"></script>
<script type="text/javascript" src="/res/js/common/msgTools.js"></script>	
<script type="text/javascript" src="/res/js/pages/system/main.js"></script>


<script type="text/javascript">
$(function(){	
	//顶部导航切换
	$(".nav li a").click(function(){
		$(".nav li a.selected").removeClass("selected")
		$(this).addClass("selected");
	})	
})	
</script>


</head>

<body style="background:url(/res/images/topbg.gif) repeat-x;">

    <div class="topleft">
    <a href="main.html" target="_parent"><img src="/res/images/logo.png" title="系统首页" /></a>
    </div>   
    <ul class="nav">
    	<c:set var="mStatus" value="0" />
		<c:forEach items="${module_list}" var="md">
	    <c:if test="${md.level==1 }">	
	           <c:if test="${sysfunc:checkUserModule(md.id)}">    
				<li><a id='a_${md.id}' href="left.jsp?pid=${md.id}" target="leftFrame">
				    <img src="${md.img}" title="${md.name}" width="48" height="48"/>
					<h2>${md.name}</h2></a>
					<c:set var="mStatus" value="${mStatus+1}" />    
	    	 	    <c:if test="${mStatus==1}">
	    	 	       <script>$(function(){
	    	 	    	   var fra = window.parent.$.find("#leftFrame");
	    	 	    	   fra[0].contentWindow.location.href="left.jsp?pid=${md.id}";
	    	 	       });</script> 
	    	 	    </c:if>					
				</li>
			   </c:if>	
			</c:if>
		</c:forEach>		
	</ul>
            
    <div class="topright">    
    <ul>
    <li><span><img src="/res/images/help.png" title="帮助"  class="helpimg"/></span><a href="/views/frame/left.jsp?pid=36" target="leftFrame">帮助</a></li>
    <li><a href="#">关于</a></li>
    <li><a href="/logout" target="_parent">退出</a></li>
    </ul>
     
    <div class="user">
    <span><a href="javaScript:changePassword()" style="color:white"><%=UserContext.getLoginUser().getLoginName() %></a>&nbsp;&nbsp;${sysfunc:getUserRoles()}</span>
    <i class="hide">消息</i>
    <b class="hide">5</b>
    </div>    
    
    </div>

</body>
</html>
